package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Question;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QuestionQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionMapper {


    Question selectByPrimaryKey(Long id);

    List<Question> selectAll();


    List<Question> selectForList(QuestionQuery qo);

    void deleteByPrimaryKey(Long id);

    void saveQuestion(@Param("question") Question question, @Param("questionerId") Long questionerId);

    void updateViewsNums(Long id);
}